package chap3_14;


import java.util.Scanner;

public class Exer3_14_2 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        double[] score = new double[15];
        for (int i = 0; i < score.length; i++) {

            System.out.println("请输入第" + (i + 1) + "名学生的成绩");
            score[i] = input.nextInt();
            if (score[i] >= 0 && score[i] <= 100) {
                continue;
            }
            System.out.println("输入错误，请输入0到100的数字");
            i--;
        }
        for(int j=0;j<score.length;j++){
            System.out.println("第"+(j+1)+"名学生的成绩是："+score[j]);
        }
    }
}
